Optimal. Leaf size=43 \[ -\frac{a+b \tan ^{-1}\left (\frac{c}{x}\right )}{2 x^2}+\frac{b \tan ^{-1}\left (\frac{x}{c}\right )}{2 c^2}+\frac{b}{2 c x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0238361, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.286, Rules used = {5033, 263, 325, 203} \[ -\frac{a+b \tan ^{-1}\left (\frac{c}{x}\right )}{2 x^2}+\frac{b \tan ^{-1}\left (\frac{x}{c}\right )}{2 c^2}+\frac{b}{2 c x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5033
Rule 263
Rule 325
Rule 203
Rubi steps
\begin{align*} \int \frac{a+b \tan ^{-1}\left (\frac{c}{x}\right )}{x^3} \, dx &=-\frac{a+b \tan ^{-1}\left (\frac{c}{x}\right )}{2 x^2}-\frac{1}{2} (b c) \int \frac{1}{\left (1+\frac{c^2}{x^2}\right ) x^4} \, dx\\ &=-\frac{a+b \tan ^{-1}\left (\frac{c}{x}\right )}{2 x^2}-\frac{1}{2} (b c) \int \frac{1}{x^2 \left (c^2+x^2\right )} \, dx\\ &=\frac{b}{2 c x}-\frac{a+b \tan ^{-1}\left (\frac{c}{x}\right )}{2 x^2}+\frac{b \int \frac{1}{c^2+x^2} \, dx}{2 c}\\ &=\frac{b}{2 c x}-\frac{a+b \tan ^{-1}\left (\frac{c}{x}\right )}{2 x^2}+\frac{b \tan ^{-1}\left (\frac{x}{c}\right )}{2 c^2}\\ \end{align*}
Mathematica [A] time = 0.0098911, size = 48, normalized size = 1.12 \[ -\frac{a}{2 x^2}+\frac{b \tan ^{-1}\left (\frac{x}{c}\right )}{2 c^2}-\frac{b \tan ^{-1}\left (\frac{c}{x}\right )}{2 x^2}+\frac{b}{2 c x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.026, size = 41, normalized size = 1. \begin{align*} -{\frac{a}{2\,{x}^{2}}}-{\frac{b}{2\,{x}^{2}}\arctan \left ({\frac{c}{x}} \right ) }+{\frac{b}{2\,cx}}+{\frac{b}{2\,{c}^{2}}\arctan \left ({\frac{x}{c}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.52523, size = 57, normalized size = 1.33 \begin{align*} \frac{1}{2} \,{\left (c{\left (\frac{\arctan \left (\frac{x}{c}\right )}{c^{3}} + \frac{1}{c^{2} x}\right )} - \frac{\arctan \left (\frac{c}{x}\right )}{x^{2}}\right )} b - \frac{a}{2 \, x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.06838, size = 84, normalized size = 1.95 \begin{align*} -\frac{a c^{2} - b c x +{\left (b c^{2} + b x^{2}\right )} \arctan \left (\frac{c}{x}\right )}{2 \, c^{2} x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 1.23747, size = 44, normalized size = 1.02 \begin{align*} \begin{cases} - \frac{a}{2 x^{2}} - \frac{b \operatorname{atan}{\left (\frac{c}{x} \right )}}{2 x^{2}} + \frac{b}{2 c x} - \frac{b \operatorname{atan}{\left (\frac{c}{x} \right )}}{2 c^{2}} & \text{for}\: c \neq 0 \\- \frac{a}{2 x^{2}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.14501, size = 84, normalized size = 1.95 \begin{align*} -\frac{2 \, b c^{2} i \arctan \left (\frac{c}{x}\right ) + 2 \, a c^{2} i - 2 \, b c i x - b x^{2} \log \left (i x + c\right ) + b x^{2} \log \left (-i x + c\right )}{4 \, c^{2} i x^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]